package com.example.test_witns.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class Comment {
    private long comment_ID;
    private String writer;
    private String content;
    private long target_Blog_ID;
    private String writer_Avatar_URL;
    private String publish_Time;
    private int likes_num;
    private int reply_num;
    private String reply_IDs;

    public long getComment_ID() {
        return comment_ID;
    }

    public void setComment_ID(long comment_ID) {
        this.comment_ID = comment_ID;
    }

    public String getWriter() {
        return writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTarget_Blog_ID() {
        return target_Blog_ID;
    }

    public void setTarget_Blog_ID(long target_Blog_ID) {
        this.target_Blog_ID = target_Blog_ID;
    }

    public String getWriter_Avatar_URL() {
        return writer_Avatar_URL;
    }

    public void setWriter_Avatar_URL(String writer_Avatar_URL) {
        this.writer_Avatar_URL = writer_Avatar_URL;
    }

    public String getPublish_Time() {
        return publish_Time;
    }

    public void setPublish_Time(String publish_Time) {
        this.publish_Time = publish_Time;
    }

    public int getLikes_num() {
        return likes_num;
    }

    public void setLikes_num(int likes_num) {
        this.likes_num = likes_num;
    }

    public int getReply_num() {
        return reply_num;
    }

    public void setReply_num(int reply_num) {
        this.reply_num = reply_num;
    }

    public String getReply_IDs() {
        return reply_IDs;
    }

    public void setReply_IDs(String reply_IDs) {
        this.reply_IDs = reply_IDs;
    }

    public Comment(long comment_ID, String writer, String content, long target_Blog_ID,
                   String writer_Avatar_URL, String publish_Time, int likes_num, int reply_num, String reply_IDs) {
        this.comment_ID = comment_ID;
        this.writer = writer;
        this.content = content;
        this.target_Blog_ID = target_Blog_ID;
        this.writer_Avatar_URL = writer_Avatar_URL;
        this.publish_Time = publish_Time;
        this.likes_num = likes_num;
        this.reply_num = reply_num;
        this.reply_IDs = reply_IDs;
    }

    @JsonIgnore
    public Comment getComment(){
        return this;
    }
}
